'use strict';

const Controller = require('egg').Controller;

class ConsumerOrdersController extends Controller {
  async addConsumerOrders() {
    let { ctx, service } = this;
    let obj = ctx.request.body;
    let arr = await service.add.addConsumerOrders(obj);
    ctx.body = arr;
  }
}

module.exports = ConsumerOrdersController;
